Results 1 to 2 of 2

Thread: How to add command not argument to console app?

  1. #1
    Join Date
    May 2018
    Qt products
    Qt5 Qt/Embedded
    Unix/X11 Windows

    Default How to add command not argument to console app?

    I want to set usage part
    Usage: ./app command <arg> [options]
    <arg> .....
    I don't know how to show "command" at Usage without argument part when show help.

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 844 Times in 831 Posts
    Qt products

    Default Re: How to add command not argument to console app?

    I do not understand why you are having so much trouble with this. If you are writing the console app, then you are in control of what you print to the screen. Simply output what you want to show.

    It would be very helpful if you showed some real code for what you have tried already. Just telling us what you want to do without explaining what you have tried (and doesn't work) is no good at helping us to see why you are having problems.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Problem about argument of console app
    By madawg in forum Newbie
    Replies: 2
    Last Post: 1st October 2018, 11:23
  2. Replies: 1
    Last Post: 5th July 2017, 01:29
  3. Replies: 12
    Last Post: 19th July 2012, 21:22
  4. How i Get Path From Command Line Argument
    By METEOR7 in forum Qt Programming
    Replies: 4
    Last Post: 17th November 2011, 18:12
  5. Replies: 4
    Last Post: 14th July 2009, 03:27

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.