Using manyConsole to creating a default argument with no flags but still have commands that require flags

Matt Pedigo

I just found manyConsole for commandline parsing and believe that it can meet my requirements for a Windows console app in my project except for one thing. Can I have manyConsole parse the commandline so that I have the following functionality

myapp.exe C:\somedirectory\somefile.ext -v 10.00

where file path would be required but not preceeded by a flag or command but each argument after would require a flag?

Frank Schwieterman

Since you're not dispatching to different commands, Mono.Options would be a more direct match. Both will handle the flagged options then give you a list of unhandled options (which in your case would be the path at the beginning.) Either will work. You might prefer many console still as it will help with error/help responses.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why does fdopen have a "flags" argument?

From Dev

Why does fdopen have a "flags" argument?

From Dev

Global parameters to commands using go-flags

From Dev

Make: access argument flags

From Dev

What is default in chrome://flags

From Dev

Using specific grep flags from BSD general commands version on a Mac

From Dev

Reuse similar flags for multiple commands

From Dev

Reconstructing "flags" argument to mmap call

From Dev

Pass an argument with multiple letter flags

From Dev

Using Automapper with Flags Enum

From Dev

Perl Debugging Using Flags

From Dev

Python Argparse "radio" flags with default?

From Dev

Have argparse collect, but not respond to, flags

From Dev

Key Commands with no modifier flags—Swift 2

From Dev

Git alias with multiple commands AND flags cannot work

From Dev

Git alias with multiple commands AND flags cannot work

From Dev

ADB Commands and flags - Definitive Windows documentation?

From Dev

Simple BASH script treating flags as commands

From Dev

Key Commands with no modifier flags—Swift 2

From Dev

bash script combining commands enable flags?

From Dev

ValueError('Cannot process flags argument with a compiled pattern')

From Dev

Passing in flags as an argument to re.compile

From Dev

Python argparse accept variable argument (even flags)

From Dev

Using checkboxes to PostBack Enum with Flags

From Dev

Debugging using makefile flags in C

From Dev

C# using [Flags] with [Description]

From Dev

Creating last observation flags for grouped data with dplyr

From Dev

QDialog - Change default flags to exclude ? button

From Dev

Default value for flags enum in a RESTful WCF service

Related Related

HotTag

Archive