View Issue Details

IDProjectCategoryView StatusLast Update
0013095ScribusUser Interfacepublic2015-11-22 13:56
ReporterKunda Assigned Tocbradney  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformMacOSOSXOS Version10.9.5
Product Version1.5.1svn 
Fixed in Version1.5.1svn 
Summary0013095: CLI --help needs formatting
Description-py flag listed in --help breaks formatting
See screenshot
Steps To Reproduce1) Start Scribus from CLI
2) run Scribus --help
3) Notice the -py flag breaks formatting
Additional InformationScreenshot: https://www.dropbox.com/s/tift46xxwokne25/Screenshot%202015-05-28%2011.46.31.png?dl=0 [^]
Tagspatch
PatchYes

Relationships

related to 0013190 closedcbradney CLI --la needs formatting 

Activities

Kunda

2015-05-28 16:51

updater   ~0035281

Screenshot: https://www.dropbox.com/s/tift46xxwokne25/Screenshot%202015-05-28%2011.46.31.png?dl=0

simonaw

2015-06-29 02:27

reporter  

0013095_CLI_help_needs_formatting.patch (546 bytes)   
diff --git a/scribus/scribusapp.cpp b/scribus/scribusapp.cpp
index 204a8bb..83b24e3 100644
--- a/scribus/scribusapp.cpp
+++ b/scribus/scribusapp.cpp
@@ -478,7 +478,7 @@ static void printArgLine(QTextStream & ts, const char * smallArg,
 {
 	const char* lineformat = "  %1, %2 %3";
 	const int saw = 4;   // Short argument width
-	const int aw = -18;   // Argument width (negative is left aligned)
+	const int aw = -25;   // Argument width (negative is left aligned)
 	QString line = QString(lineformat)
 		.arg(smallArg, saw)
 		.arg(fullArg, aw)

Kunda

2015-06-29 02:49

updater   ~0035557

Thanks for the patch!

cbradney

2015-06-29 21:25

administrator   ~0035563

Fixed but differently

Kunda

2015-06-29 23:50

updater   ~0035566

Fantastic! Thanks for the fix in r20220, Craig!
Simonaw, Thanks again for the patch. It inspired the fix :)
Cheers!

Issue History

Date Modified Username Field Change
2015-05-28 16:50 Kunda New Issue
2015-05-28 16:51 Kunda Note Added: 0035281
2015-06-01 00:31 Kunda Description Updated
2015-06-01 00:31 Kunda Steps to Reproduce Updated
2015-06-01 00:31 Kunda Additional Information Updated
2015-06-29 02:27 simonaw File Added: 0013095_CLI_help_needs_formatting.patch
2015-06-29 02:27 simonaw Tag Attached: patch
2015-06-29 02:47 Kunda Patch No => Yes
2015-06-29 02:47 Kunda Summary CLI --help needs formatting => [Patch] CLI --help needs formatting
2015-06-29 02:49 Kunda Note Added: 0035557
2015-06-29 21:25 cbradney Note Added: 0035563
2015-06-29 21:25 cbradney Status new => resolved
2015-06-29 21:25 cbradney Fixed in Version => 1.5.1svn
2015-06-29 21:25 cbradney Resolution open => fixed
2015-06-29 21:25 cbradney Assigned To => cbradney
2015-06-29 23:50 Kunda Note Added: 0035566
2015-06-29 23:50 Kunda Status resolved => closed
2015-06-30 16:40 Kunda Relationship added related to 0013190
2015-11-22 13:56 jghali Summary [Patch] CLI --help needs formatting => CLI --help needs formatting