Changing/Unifying KDevelop's CLI arguments

Milian Wolff mail at milianw.de
Fri Sep 24 14:41:40 UTC 2010


Hey all, 

any objections on me cleaning up the CLI arguments for KDevelop? Currently:

~~~~~~~~~~~~
$ kdevelop --help
Usage: kdevelop [Qt-options] [KDE-options] [options] files 

The KDevelop Integrated Development Environment

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --project <project>       Url to project to load

Arguments:
  files                     Files to load
  --debug <debugger>        Start debugger, for example gdb. The binary that 
should be debugged must follow - including arguments.
  --cs <name>               Create new session with given name.
  -s <session>              Session to load. You can pass either hash or the 
name of the session.
  --sessions                List available sessions and quit
~~~~~~~~~~~~

I want:

~~~~~~~~~~~~
$ kdevelop --help
Usage: kdevelop [Qt-options] [KDE-options] [options] files 

The KDevelop Integrated Development Environment

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  -p <project>
  --project <project>       Url to project to load

Arguments:
  files                     Files to load
  --debug <debugger>        Start debugger, for example gdb. The binary that 
should be debugged must follow - including arguments. Example:
  kdevelop --debug gdb someapp --somearg
  -n <name>
  --new-session <name>      Start KDevelop with a new session with the given 
name.
  -s <session>
  --session <session>              Start KDevelop and load the given session.
   You can pass either hash or the name of the session.
  -l
  --list-sessions                List available sessions and quit
~~~~~~~~~~~~

So generally it's about making giving short and long cli options everywhere. 
It would mean thought that the imo often used --sessions and -cs get removed 
in favor of the imo much more concise:

-n / --new-session

and

-l / --list-sessions

Also the explanation texts where improved a bit. So - objections?
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100924/380b1a5a/attachment.sig>


More information about the KDevelop-devel mailing list