Author Topic: HippoEDIT command line parameters  (Read 1131 times)

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
HippoEDIT command line parameters
« on: April 21, 2009, 03:32:21 pm »
What command line parameters does HE accept?

PS: I have noticed that if I start HE like HippoEdit /? it prompts to create file ? - neat!

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: HE from Command Line
« Reply #1 on: April 21, 2009, 05:18:45 pm »
/? is not a valid parameter. HippoEDIT recognize it as file name and try to open, but because it is not found, you got prompt to create it.

Try --help as command line parameter.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: HE from Command Line
« Reply #2 on: April 21, 2009, 06:31:18 pm »
Thank you Alex, please explain what the following means or when to use:

--init
-t [file type]
--landscape arg - how to use? and --print_to arg

PS: Is --Debug what is OK to use even though it is not the PDC version?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: HE from Command Line
« Reply #3 on: April 21, 2009, 06:59:12 pm »
--init - initialize all cached properties. Delete all temp files created by HippoEDIT: file properties, buffered syntax files, buffered autocorection etc (all he*.tmp files in %TEMP% folder)
-t [file type] - syntax to apply to passed files
--landscape - the argument should be used together with --print (-p) or print_to
--print_to, arg equal to name of printer where you want to print
--debug - has nothing to do with real debugging, just enable some traces

-m [ --new-instance ]          start another instance
--config arg          set configuration directory
--init          initialize all cached properties
--portable          run application in portable mode
--debug          enables debug mode
-d [ --directory ] arg          set current directory
--title arg          append 'title' to the main window title bar
-u [ --no-recent ]          do not add the file to the Recent Files list
-w [ --workspace ] arg          name of saved workspace, if empty, no would be loaded
-h [ --help ]          produce help message
--close_all          close all documents
-s [ --save_all ]          saves all modified documents
-i [ --input-file ] arg          input files
-l [ --line ] arg          line number
-c [ --column ] arg          column number
-r [ --read-only ]          read-only mode
-t [ --type ] arg          file type
-e [ --encoding ] arg          sets an encoding for file
-n [ --new ]          creates new file
--paste          paste clipboard content
--find arg          search current document
--landscape arg          set landscape/portrait orientation for printing
--print_to arg          call print to dialog
-p [ --print ]          direct print
--minimized          start minimized (iconized)

Edit: added full list of HE HippoEDIT command line arguments / parameters commandline argument parameter
« Last Edit: September 01, 2009, 08:40:45 pm by Stefan »

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
How to submit multiple command line parameters to HE?
« Reply #4 on: April 21, 2009, 06:59:43 pm »
How to submit multiple command line parameters to HE?

I have tried

hippoedit -i D:\scripts.vbs -l 4 -c 3
hippoedit -i "D:\scripts.vbs", -l 4 -c 3
hippoedit -iD:\scripts.vbs, -l4 -c3 [no spaces]

but none seem to work? Bug, deficiency, design?

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: HE from Command Line
« Reply #5 on: April 21, 2009, 07:07:31 pm »
Does not look like it can take several parameters though, or I am wrong?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: How to submit multiple command line parameters to HE?
« Reply #6 on: April 21, 2009, 07:12:10 pm »
this works:
Code: [Select]
HippoEdit.exe --workspace=viewer HippoEdit.config -l 10 -c 10and this:
Code: [Select]
HippoEdit.exe --workspace=viewer -l 10 -c 10 -i HippoEDIT.config(just reorder, files should be at the end, because it is defualt multiple parameter)

And also helps, when you write, what exactly does not work ;)

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: How to submit multiple command line parameters to HE?
« Reply #7 on: April 21, 2009, 07:13:43 pm »
HippoEdit.exe --workspace=viewer d:\scripts.vbs -l 32 -c 3
does not work

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: How to submit multiple command line parameters to HE?
« Reply #8 on: April 21, 2009, 07:17:08 pm »
and:
Code: [Select]
HippoEdit.exe --workspace=viewer D:\Projects\binU\HippoEdit.config -l 10 -c 10works ;)

because you do not explain what "does not work" I could not help you :)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: HE from Command Line
« Reply #9 on: April 21, 2009, 07:19:10 pm »
It should work.
try this:
HippoEdit.exe -w viewer HippoEdit.config license.txt

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: How to submit multiple command line parameters to HE?
« Reply #10 on: April 21, 2009, 07:22:41 pm »
Found the bug  ;)

if the document has say 10 lines and you ask to position at 11th you will experience crash condition.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: How to submit multiple command line parameters to HE?
« Reply #11 on: April 21, 2009, 07:25:22 pm »
Ok, agree, this should be checked

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: HE from Command Line
« Reply #12 on: April 21, 2009, 07:27:23 pm »
Works, perfect!

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
648 Views
Last post April 21, 2009, 11:47:07 pm
by alex
5 Replies
533 Views
Last post June 02, 2009, 09:31:40 pm
by alex
3 Replies
344 Views
Last post November 11, 2010, 10:27:16 am
by GJK
2 Replies
322 Views
Last post November 19, 2010, 03:53:45 pm
by scunliffe
1 Replies
357 Views
Last post April 29, 2011, 01:49:27 pm
by alex